//
//  Service+Category.m
//  huimei
//
//  Created by fengyn on 16/1/22.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import "Service+Category.h"

@implementation ServiceManager(Category)
///获取两级分类
+ (void)getCategoryTreeSuccess:(void(^)(NSDictionary *data)) success failure:(void(^)(NSDictionary *data)) failure
{
    NSString * path = @"/category/public/tree";
    NSDictionary * dic = nil;
    [NetworkClient getRequest:path parameters:dic NeedPrompt:YES success:^(id dataObject) {
        success(dataObject);
    } failure:^(id dataObject) {
        failure(dataObject);
    }];
}
@end
